import request from '@/utils/request'

// 查询商城商品信息列表
export function listMallGoods(query) {
  return request({
    url: '/customer/mallGoods/list',
    method: 'get',
    params: query
  })
}

// 查询商城商品信息详细
export function getMallGoods(id) {
  return request({
    url: '/customer/mallGoods/' + id,
    method: 'get'
  })
}

// 新增商城商品信息
export function addMallGoods(data) {
  return request({
    url: '/customer/mallGoods',
    method: 'post',
    data: data
  })
}

// 修改商城商品信息
export function updateMallGoods(data) {
  return request({
    url: '/customer/mallGoods',
    method: 'put',
    data: data
  })
}

// 删除商城商品信息
export function delMallGoods(id) {
  return request({
    url: '/customer/mallGoods/' + id,
    method: 'delete'
  })
}
